package com.groupseven.happycampus.mapper;


import com.groupseven.happycampus.common.pojo.Commodity;
import org.apache.ibatis.annotations.Param;

import java.lang.reflect.Array;
import java.util.List;
import java.util.Map;

public interface CommodityMapper {
    List<Commodity> selectCommodityList(Map<String, Object> params);

    int addCommodity(Commodity commodity);


    /**
     * 删除应该用 商品 id 进行 不是列表id
     * @param commodityId
     * @return
     */
    int deleteCommodity(Integer commodityId);

    int updateCommodity(Commodity commodity);

    List <Commodity>selectCommodityIdById(@Param("id") String[] id);
}
